//
//  LSZSimilarVideoTableViewCell.m
//  JKFuYinProject
//
//  Created by 九酷 on 2018/4/19.
//  Copyright © 2018年 LC. All rights reserved.
//

#import "LSZSimilarVideoTableViewCell.h"

@implementation LSZSimilarVideoTableViewCell
-(id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {

        self.imageViewCover = [[UIImageView alloc]initWithFrame:CGRectMake(15, 20, 65, 65)];
         [self addSubview:self.imageViewCover];

        self.labelTitle = [[UILabel alloc]initWithFrame:CGRectMake(CGRectGetMaxX(self.imageViewCover.frame)+9,25, ScreenWidth- CGRectGetMaxX(self.imageViewCover.frame)-10, 19)];
        self.labelTitle.font = FONT_14;
        self.labelTitle.textColor = RGBColor(51, 51, 51);
        [self addSubview:self.labelTitle];

        self.labelIntroduce = [[UILabel alloc]initWithFrame:CGRectMake(CGRectGetMaxX(self.imageViewCover.frame)+9, CGRectGetMaxY(self.labelTitle.frame)+15, ScreenWidth- CGRectGetMaxX(self.imageViewCover.frame)-10, 17)];
        self.labelIntroduce.font = FONT_12;
        self.labelIntroduce.textColor = RGBColor(175, 175, 175);
        [self addSubview:self.labelIntroduce];
    }
    return self;
}
//-(void)setRelatedVideoMg:(LSZRelatedVideoMg *)relatedVideoMg
//{
//    [self.imageViewCover sd_setImageWithURL:[NSURL URLWithString:relatedVideoMg.pic] placeholderImage:[UIImage imageNamed:@"placeholder"]];
//    self.labelTitle.text = NSStr(relatedVideoMg.name);
//    if ([relatedVideoMg.content isEqualToString:@""]||relatedVideoMg.content.length == 0) {
//        self.labelIntroduce.text = NSStr(relatedVideoMg.author);
//    }else{
//        self.labelIntroduce.text = NSStr(relatedVideoMg.content);
//    }
//}

@end
